package com.zhentao.service;

import org.apache.kafka.common.protocol.types.Field;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class KafakaConsumer {
    @KafkaListener(topics = "test")
    public void receiveMessage(String message){
        System.out.println(".........."+message);
        System.out.println("Received Message:"+ message);
    }
}
